﻿@using Microsoft.AspNetCore.Components.Authorization
<Router AppAssembly="typeof(Program).Assembly"
        AdditionalAssemblies="new[] {
                    typeof(Frogsoft.Permission.Main).Assembly,
                    typeof(Frogsoft.Pages.Main).Assembly
                }">
    <Found Context="routeData">
        <AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)">
            <NotAuthorized>                
                    <h1>Access Denied</h1>
                    <p>你没有权限访问当前页面.</p>                
            </NotAuthorized>
        </AuthorizeRouteView>
        <FocusOnNavigate RouteData="routeData" Selector="h1" />
    </Found>
</Router>
